

<div class="am-cf admin-main">
<div class=" admin-content">
	




	
	


<div class="admin-biaogelist">
	
    <div class="listbiaoti am-cf">
      <ul class="am-icon-flag on"> 充值</ul>
      
      <dl class="am-icon-home" style="float: right;">当前位置： 首页 > <a href="#">商品列表</a></dl>
      
      <dl>
<!--        <button type="button" class="am-btn am-btn-danger am-round am-btn-xs am-icon-plus" > 补充线订单</button>-->
      </dl>
      <!--这里打开的是新页面-->
      
      
      
      
      
      
      
      
      
      
      
      
      
    </div>






    <div class="fbneirong">


        <form class="am-form">


            <div style="margin-left: 200px;">
                <div style="; font-size: 16px;float: ">方式一： 银行卡转账 (大额转账推荐此方式，免手续费，非实时，工作时间9:30~19:00约10分钟内处理，19点之后不再处理审核)</div>
                <div style="; font-size: 22px;color: red ">重要通知：禁止使用财付通、ATM机、支付宝！！！</div>

                <div style="; font-size: 14px;color: red ">注意事项！</div>
                <div style="; font-size: 16px;float: ">
                    <li>   1、为了方便财务确认转账来源，转账务必个位和十位数字不要都为0，如519.02或1158.18，禁止提交任何备注，备注敏感词处罚200-500元，多次备注敏感词封号处理，余额不予提现。</li>
                    <li>   2、选用方式一充值务必先打款，后提交。</li>
                    <li>    3、谢绝使用财付通、支付宝、ATM机转账</li>
                </div>

                <div style="; font-size: 21px;color: black ">第一步：请先转账到平台官方账号</div>

                <div class="am-form-group am-cf" style="margin-left: -180px; margin-top: 5px; font-size: 17px;  color: red    ">
                    <div class="zuo">官方账户信息</div>
                    <div class="you">

                        <li> 账户：  6213903301273483</li>
                        <li> 姓名：唐得登 </li>
                        <li>   银行信息：上海浦东发展银行合肥分行 杭州路2608 </li>


                    </div>
                </div>



        <!--        <div class="am-form-group am-cf" style="margin-left: -180px;">
                    <div class="zuo">账户：</div>
                    <div class="you">
                        <input type="text" class="am-input-sm"  name ="account"id="doc-ipt-email-1"   placeholder="请输账户">
                    </div>
                </div>-->


                <div style="; font-size: 21px;color: black ">第二步：请确定提交转账金额</div>

            </div>


            <div class="am-form-group am-cf">
                <div class="zuo">转账金额：</div>
                <div class="you">
                    <input type="text" class="am-input-sm" id="doc-ipt-email-1"  name="money" placeholder="请输入金额">
                </div>
            </div>
            <div class="am-form-group am-cf">
                <div class="zuo">打款姓名：</div>
                <div class="you">
                    <input type="text"   name="username" class="am-input-sm" id="doc-ipt-email-1" placeholder="请输入打款人姓名">
                </div>
            </div>


            <div class="am-form-group am-cf">
                <div class="zuo">充值截图：</div>
                <input type="file" name="uploadFile" id="upload_file" style="margin-bottom:10px;">
                <input type="button" id="uploadPicButton" value="上传" onclick="uploadPic()">

                <p class="am-form-help"  style="position: absolute;  left: 400px;  top: 440px;">
                    <img src=""  class="picshow"   style="display: none"  width="100px;" height="100px;"></p>


                <input type="hidden"  name="pic" value="">
            </div>



            <div class="am-form-group am-cf">
                <div class="you" style="margin-left: 11%; margin-top: 60px;">
                    <div    id="chongzhi" class="am-btn am-btn-secondary am-radius">确定</div>

                </div>
            </div>
        </form>

        <form class="am-form am-g">
            <table width="100%" class="am-table am-table-bordered am-table-radius am-table-striped am-table-hover">
                <thead>
                <tr class="am-success">
                    <th class="table-check"><input type="checkbox" /></th>

                    <th class="table-id">ID</th>
                    <th class="table-title">创建时间</th>
                    <th class="table-type">充值金额</th>
                    <th class="table-author am-hide-sm-only">转账姓名</th>
                    <th class="table-author am-hide-sm-only">审核状态</th>
                    <th class="table-date am-hide-sm-only">备注</th>
                </tr>
                </thead>
                <tbody class="impowdith">




                </tbody>
            </table>

          <!--  <div class="am-btn-group am-btn-group-xs">
                <button type="button" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 删除</button>
                <button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 上架</button>
                <button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 下架</button>
                <button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 移动</button>
                <button type="button" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 新增</button>
                <button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 保存</button>
                <button type="button" class="am-btn am-btn-default"><span class="am-icon-archive"></span> 移动</button>
                <button type="button" class="am-btn am-btn-default"><span class="am-icon-trash-o"></span> 删除</button>
            </div>-->



            <div id="Pagination" style="margin:20px auto" style="display:none"></div>

          <!--  <ul class="am-pagination am-fr">


            </ul>-->




            <hr />
            <p>注：.....</p>
        </form>

    </div>
    <script>

        var picurl="";
        var picpath="";

        function uploadPic(){
            var pic = $('#upload_file')[0].files[0];
            var fd = new FormData();
            fd.append('uploadFile', pic);


            var url = "<?php echo base_url(); ?>/Business/uppic";

            $.ajax({
                url:url,
                type:"post",
                dataType:"json",
                // Form数据
                data: fd,
                cache: false,
                contentType: false,
                processData: false,
                success:function(data){
                    if(data.code==0){
                        $(".picshow").attr("src",data.url)
                        $(".picshow").show();
                        $("input[name=pic]").val(data.url);
                        picpath=data.path;
                        return;
                    }
                    layer.msg(data.msg);

                }

            });
        }

    </script>

    
    <script>

        var on_request=false;
        var type=1;
        var page=1;

        $("#chongzhi").click(function () {
            pay()
        });

        function pay() {
            if (on_request) {
                return;
            }
            on_request = true;

            var url = "<?php echo base_url(); ?>/Business/payaction";
            var postdata = {
                'page': page
            };
         /*   var account=$("input[name='account']").val();*/
            var money = $("input[name='money']").val();
            var username= $("input[name='username']").val();


      /*      postdata['account'] = account;*/
            postdata['money'] =money;
            postdata['username'] =username;
            postdata['pic'] = picpath;

            $.post(url, postdata, function (data) {
                on_request = false;

                if(data.code==0){
                    layer.msg("提交成功");
                    getpaylist();
                }else{
                    layer.msg(data.msg);
                }
            },"json");
        }

        function setlisthtnml(data) {
            var html = '';
            if(data.list.length>0){
                $.each(data.list, function (key, value) {
                    html += ' <tr>' +
                        '<td><input type="checkbox" /></td>\n' +
                        ' <td>'+  value.id+'</td>\n' +
                        ' <td>'+value.addtime+'</td>\n' +
                        '  <td>'+value.money+'</td>\n' +
                        '                    <td class="am-hide-sm-only">'+value.money_maker+'</td>\n' +
                        '                    <td class="am-hide-sm-only">'+value.status+'</td>\n' +
                        '  <td>'+value.remark+'</td>\n' +
                        '                </tr>';
                });
                $(".impowdith").html(html);
                $('#Pagination').show();
            }else{
                html += '<li><div style="width:100%;text-align:center;">&nbsp暂无数据</div></li>';
                $(".impowdith").html(html);
                $('#Pagination').hide();
            }
        }


        getpaylist();
        function getpaylist() {
            var url = "<?php echo base_url(); ?>/Business/getpaylist";
            var postdata = {
                'page': page
            };
            $.post(url, postdata, function (data) {
                 on_request = false;
                 setlisthtnml(data);
                 setPagination("Pagination", data.count, page, data.epage, function (clickPage) {
                     page = parseInt(clickPage) + 1;
                     getpaylist();
                 });
            },'json');

        }


    </script>
	



 
 
 
 
 <div class="foods">
  <ul>
    版权所有@2015. 
  </ul>
  <dl>
    <a href="" title="返回头部" class="am-icon-btn am-icon-arrow-up"></a>
  </dl>
</div>




</div>

</div>




</div>


<!--<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>-->
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="<?php echo base_url() . 'public/business/'; ?>assets/js/polyfill/rem.min.js"></script>
<script src="<?php echo base_url() . 'public/business/'; ?>assets/js/polyfill/respond.min.js"></script>
<script src="<?php echo base_url() . 'public/business/'; ?>assets/js/amazeui.legacy.js"></script>


<!--[if (gte IE 9)|!(IE)]><!--> 
<script src="<?php echo base_url() . 'public/business/'; ?>assets/js/amazeui.min.js"></script>
<!--<![endif]-->



</body>
</html>